//
//  thirdTableViewCell.m
//  UI10_作业2
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "thirdTableViewCell.h"

@implementation thirdTableViewCell

- (void)dealloc
{
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}

- (void)creatCell{
    
    self.imgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView];
    [_imgView release];
    
    self.addresslabel = [[UILabel alloc] init];
    [_imgView addSubview:_addresslabel];
    [_addresslabel release];
    
    self.cinemaNamelabel = [[UILabel alloc] init];
    [_imgView addSubview:_cinemaNamelabel];
    [_cinemaNamelabel release];
    
    self.telephonelabel = [[UILabel alloc] init];
    [_imgView addSubview:_telephonelabel];
    [_telephonelabel release];
    
}

- (void)layoutSubviews{
    [super layoutSubviews];
    _imgView.frame = CGRectMake(20, 20, 337, 160);
    _imgView.backgroundColor = [UIColor clearColor];
    
    _addresslabel.frame = CGRectMake(20, 10, 300, 40);
    _addresslabel.backgroundColor = [UIColor clearColor];
    _addresslabel.numberOfLines = 2;
    _addresslabel.font = [UIFont systemFontOfSize:20];
    
    _cinemaNamelabel.frame = CGRectMake(20, 60, 300, 50);
    _cinemaNamelabel.backgroundColor = [UIColor clearColor];
    _cinemaNamelabel.numberOfLines = 2;
    
    _telephonelabel.frame = CGRectMake(20, 120, 300, 30);
    _telephonelabel.backgroundColor = [UIColor clearColor];
    _telephonelabel.numberOfLines = 2;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
